package exceptions;

import accounts.Account;

/**
 * this exception is thrown if an account has not enough money to perform some action
 * @author Mike
 */
public class NotEnoughMoneyException extends Throwable {
    /**
     * the account that was affected by the exception
     */
    public Account affectedAccount;
    /**
     * create a new exception
     * @param affected the account that was affected by the exception
     */
    public NotEnoughMoneyException(Account affected) {
        affectedAccount = affected;
    }
}
